<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="@{include} :: header"></head>
<body>
<div class="layuimini-container">
    <div class="layuimini-main">
        <div class="layui-row">
            <form style="margin: 10px 10px 10px 10px" class="layui-form layui-form-pane" id="signupForm">
                <input id="id" name="id" th:value="${shopPost.id}" type="hidden">
                <div class="layui-form-item">
                    <label class="layui-form-label">岗位名称：</label>
                    <div class="layui-input-block">
                        <input id="postName" name="postName" th:value="${shopPost.postName}" class="layui-input" type="text">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">所属企业：</label>
                    <div class="layui-input-block">
                        <select name="shopId" id="shopId" lay-search="">
                            <option value="">请选择所属企业</option>
                            <th:block th:each="d : ${shops}">
                                <option th:value="${d.id}" th:selected="${d.id == shopPost.shopId}" th:text="${d.shopName}"></option>
                            </th:block>
                        </select>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">设备状态：</label>
                    <div class="layui-input-block">
                        <select data-placeholder="--请选择--" name="state" id="state">
                            <option value="1" th:selected="${shopPost.state eq 1}">开启</option>
                            <option value="0" th:selected="${shopPost.state eq 0}">禁用</option>
                        </select>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">备注：</label>
                    <div class="layui-input-block">
                        <textarea name="remark" th:text="${shopPost.remark }" placeholder="这里输入备注" style="height: 100px;resize:none;" class="layui-textarea"></textarea>
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button type="submit" onclick="update()" class="layui-btn layui-btn-lg layui-btn-success">提交</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" th:src="@{/js/appjs/module/shop/post/detail.js}"></script>
</body>
</html>
